﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Diagnostics;

using log4net;
using log4net.Config;

namespace AnB.Common
{
    public class Log
    {
        public static void Initialize(string xmlfile)
        {
            XmlConfigurator.ConfigureAndWatch(new FileInfo(App.Config(xmlfile)));
        }

        private static ILog mLog = LogManager.GetLogger("DEF");

        public static ILog Get()
        {
            return mLog;
        }

    }
}
